package com.nine.service;

import com.nine.entity.Dept;
import com.nine.entity.PageSort;
import com.nine.entity.Userinfo;

import java.util.List;
import java.util.Map;

/**
 * @author ：婷儿
 * @date ：Created in 2022/6/25 9:54
 * @description：userinfo表的service接口
 * @modified By：
 * @version: 1.0
 */
public interface UserinfoService {
    List<Userinfo> select(PageSort pageSort);
    int add(Userinfo userinfo);
    int delete(String[] userId);
    int update(Userinfo userinfo);
    String selectUsername(String loginName);
    int selectCount();
    int updatePasswordInt(Userinfo userinfo);
    String selectUpdate(String login_name,Integer user_id);
    boolean checkUser(Map<String, Object> map);
    Userinfo findUserInfoByName(String loginName);
    /**
     * @create by: Fmc
     * @description: 通过session获取用户id并查找个人信息
     * @create time: 2022/6/29 10:06
     * @return: Userinfo
     */
    Userinfo selectById(Integer userId);
    /**
     * @create by: Fmc
     * @description: 修改个人信息
     * @create time: 2022/6/29 18:11
     * @return: boolean
     */
    boolean updateOneself(Userinfo userinfo);
}
